import request from '@/utils/request'
// 仓库列表
const getCkList = (data) => request.get('/warehouse/page', {
  params: {
    ...data
  }
})
// 停用与启用
const EditStatu = (data) => request.put('/warehouse', data)
// 删除
const delCk = (data) => request.delete('/warehouse', {
  params: {
    ...data
  }
})
// 新增
const AddCk = (data) => request.post('/warehouse', data)
// 编码
const CodeCk = () => request.get('/codeFactory/next/CK')
// 修改
const editAdd = (data) => request.put('/warehouse', data)
// 列表
const getKqList = data => request.get('/area/pageDetail', {
  params: {
    ...data
  }
})
// 启用与停用
const EditKqgl = data => request.put('/area', data)
// 删除
const delKq = data => request.delete('api/area', {
  params: {
    ...data
  }
})
export {
  getCkList,
  EditStatu,
  delCk,
  AddCk,
  CodeCk,
  editAdd,
  getKqList,
  EditKqgl,
  delKq
}
